package com.tobby.camel.camelinaction.chapter6.firsttest;

import org.apache.camel.CamelContext;
import org.apache.camel.component.properties.PropertiesComponent;

public class CamelRiderJavaDSLTest extends CamelRiderJavaDSLProdTest {

	@Override
	protected CamelContext createCamelContext() throws Exception {
		CamelContext context = super.createCamelContext();
		PropertiesComponent prop = context.getComponent("properties",
				PropertiesComponent.class);

		// setup the properties component to use the test file
		prop.setLocation(
				"classpath:com/tobby/camel/camelinaction/chapter6/firsttest/rider-test.properties");
		return context;
	}
}
